﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YJ_Core.Entities.Utils;

namespace YJ_App.Admin_System.Dtos
{
    /// <summary>
    /// 敏感词管理Dto
    /// </summary>
    public class SensitiveWordsDto
    {
        /// <summary>
        /// 添加敏感词-输入
        /// </summary>
        public class AddSensitiveWordsInput
        {
            /// <summary>
            /// 敏感词
            /// </summary>
            public string Word { get; set; }

            /// <summary>
            /// 是否启用
            /// </summary>
            public bool IsEnabled { get; set; }
        }

        /// <summary>
        /// 敏感词列表-输入
        /// </summary>
        public class SelectSensitiveWordsListInput : InputPageBase
        {
            /// <summary>
            /// 搜索关键字
            /// </summary>
            public string KeyWord { get; set; }
        }

        /// <summary>
        /// 敏感词列表-输出
        /// </summary>
        public class SelectSensitiveWordsListOutput
        {
            /// <summary>
            /// id
            /// </summary>
            public string Id { get; set; }

            /// <summary>
            /// 敏感词
            /// </summary>
            public string Word { get; set; }

            /// <summary>
            /// 是否启用
            /// </summary>
            public bool IsEnabled { get; set; } = true;

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime? CreateTime { get; set; }
        }

        /// <summary>
        /// 敏感词列表-响应
        /// </summary>
        public class SelectSensitiveWordsListResp : ResponseStatus
        {
            public List<SelectSensitiveWordsListOutput> List { get; set; }

            public int Total { get; set; }
        }

        /// <summary>
        /// 设置敏感词是否启用-输入
        /// </summary>
        public class SetSensitiveWordsIsEnabledInput
        {
            public string Id { get; set; }

            public bool? IsEnabled { get; set; }
        }

        /// <summary>
        /// 移除敏感词-输入
        /// </summary>
        public class DeleteSensitiveWordsInput
        {
            /// <summary>
            /// 批量
            /// </summary>
            public List<string> Ids { get; set; }
        }
    }
}
